package com.caidan.framework.datasource.config;

import org.springframework.boot.ApplicationRunner;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.sql.DataSource;
import java.sql.Connection;

/**
 * @项目名 CaiDanSearchSystem
 * @描述 mysql配置
 * @作者 小菜蛋
 * @时间 2024/12/1 20:52
 */
@Configuration
public class MysqlConfig {
    @Bean
    public ApplicationRunner runner(DataSource dataSource) {
        return args -> {
            Connection connection = dataSource.getConnection();
        };
    }
}
